package com.czh.mybatisplus.Enum;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum stateEnum implements IEnum<Integer> {

    one(0,"未发货"),
    two(1,"已发货"),
    three(2,"运送中"),
    four(3,"已完成");


    private final Integer code;
    @JsonValue
    private final String state;

    @Override
    public Integer getValue() {
        return code;
    }
}
